<template>
  <div>
    <Header></Header>
  </div>
  <div>
    <el-menu
      :default-active="activeIndex2"
      class="el-menu-demo"
      mode="horizontal"
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b"
      router
    >
      <el-menu-item index="list">商品列表</el-menu-item>
      <el-menu-item index="car">购物车</el-menu-item>
      <el-menu-item index="info">资讯信息</el-menu-item>
      <el-menu-item index="myInfo">我的信息</el-menu-item>
    </el-menu>

    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import Header from "../components/Header.vue";

export default {
  name: "index",
  data() {
    return {};
  },
  components: {
    Header,
  },
  methods: {
    goto(e) {
      console.log(e);
    },
  },
};
</script>

<style>
</style>